/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrgs.inf.prav.interop.metadata.lom;

import br.ufrgs.inf.prav.interop.metadata.lom.general.General;
import br.ufrgs.inf.prav.interop.metadata.lom.technical.Technical;

/**
 *
 * @author Fernando
 */
public class OBAA {

    private Technical technical = null;
    private General general = null;

    public OBAA(){
        
    }

    public String toXML(){
        StringBuffer sb = new StringBuffer();
        sb.append("<lom>\n");

        if (general != null){
            sb.append(general.toXML("\t"));
        }
        if (technical != null){
            sb.append(technical.toXML("\t"));
        }

        sb.append("</lom>\n");
        return sb.toString();
    }

    // <editor-fold defaultstate="collapsed" desc="Getters and Setters">
    public Technical getTechnical() {
        return technical;
    }

    public void setTechnical(Technical technical) {
        this.technical = technical;
    }

    public General getGeneral() {
        return general;
    }

    public void setGeneral(General general) {
        this.general = general;
    }


    // </editor-fold>

}
